//
//  ViewController.m
//  HCAnimationGroupView
//
//  Created by 王恕 on 16/3/4.
//  Copyright © 2016年 王恕. All rights reserved.
//

#import "ViewController.h"
#import "HCAnimationGroupView.h"

@interface ViewController ()

@property (nonatomic, weak) HCAnimationGroupView *animationGroupView;

@end

@implementation ViewController

-(HCAnimationGroupView *)animationGroupView{
    if (_animationGroupView == nil) {
        HCAnimationGroupView *animationGroupView = [HCAnimationGroupView animationGroupView];
        _animationGroupView = animationGroupView;
        
        //设置frame
        animationGroupView.frame = CGRectMake(0, 360, 375, 172);
        
        [self.view addSubview:animationGroupView];
    }
    return _animationGroupView;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self animationGroupView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
